/*
 * @Description: 
 * @Version: 1.0
 * @Autor: 凡
 * @Date: 2023-04-10 14:06:30
 * @LastEditors: 凡
 * @LastEditTime: 2023-04-10 14:08:50
 */
import { fileURLToPath, URL } from 'node:url'

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  resolve: {
    alias: {
      '@': fileURLToPath(new URL('./src', import.meta.url))
    }
  },
  server: {
    host: '127.0.0.1',
    port: 7125,
    open: true,
    proxy: {
      '/v1': {
        target: 'http://127.0.0.1:8000',
        changeOrigin: true
      }
    }
  }
})
